module.exports = {
	// 获取一个节点
	get(s) {
		return document.querySelector(s);
	},

	// 获取多个节点
	getAll(s) {
		return document.querySelectorAll(s);
	},
	//底部导航tabbar
	tabbar(filename) {
		let html = `
        <a href="index.html" class="${
					filename === "index" ? "active" : ""
				}"><i class="iconfont icon-shouye"></i>首页</a>
		<a href="exercising_run.html" class="${
			filename === "exersing" ? "active" : ""
		}"><i class="iconfont icon-xintiao"></i>运动</a>
		<a href="circle.html" class="${
			filename === "circle" ? "active" : ""
		}"><i class="iconfont icon-circle"></i>圈子</a>
		<a href="mine.html" class="${
			filename === "mine" ? "active" : ""
		}"><i class="iconfont icon-wode"></i>我的</a>`;
		this.get(".tabbar").innerHTML = html;
	},
};
